package cn.lanqiao;

public class Test {
    public static void main(String[] args) {

//        try {
//            Scanner input = new Scanner(System.in);
//            int num1 = input.nextInt();
//            int num2 = input.nextInt();
//            System.out.println(num1 / num2);
//        } catch (InputMismatchException e) {
//            System.out.println("输入数据错误！");
//        } catch (ArithmeticException e) {
//            System.out.println("除数不能为零！");
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//        System.out.println("计算结束！");
        System.out.println(foo());
    }
    @MyAnn(clazz = Ann.CLASS_2)
    public static int foo() {
        int i;
        int j;
        try {
            i = 4 / 2;
            return i;
        } catch (Exception e) {
            e.printStackTrace();
            return 0;
        } finally {
            i = 100;
            System.out.println("计算结束！"); //death code
        }
    }


}
